From: | David McMinn |
Date: | 25 Sep 2001 at 11:30:21 |
Subject: | RE: Impossible error |
>Whilst compiling a program, I keep getting a "Label reference out of
>context" error, which the manual says shouldn't happen :o/
>
>Does anyone know what can cause this? I've referenced other labels without
>any problems.
IIRC it's because you are trying to access a label from inside a
statement/function that is outside the statement/function, e.g.
Statement foo{}
Restore bar
Read a$,b$
NPrint a$," ",b$
End Statement
foo{}
End
bar: Data$ "this","sucks"
Or perhaps it only happens if you try to Gosub to a label outside the
function/statement. Either way, it means you'll need to change the structure
of your code, or if the label is for some data you could try passing it as a
pointer to the statement/function.
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie